package com.example.lib5.company_interface.group;

/**
 * 创建日期：2022/6/10 0010 12:42
 *
 * @author tony.sun
 * 类说明：
 */
public class GroupDemo2 {
    public static void main(String[] args) {
        char[] chs=new char[]{'a','b','c'};
        combe(chs);
    }

    private static void combe(char[] chs) {
        int le=chs.length;
        int total=1<<le;
        for (int i = 0; i < total; i++) {
            int t;
            for (int j = 0; j < le; j++) {
                t=1<<j;
                if ((t&i)!=0){
                    System.out.print(chs[j]);
                }
            }
            System.out.println();
        }
    }
}
